# @Time    :2025/3/26 8:36
# dicts = {i: i * 2 for i in range(1, 4)}
# print(dicts)
"""
题目3：集合与字典综合
创建一个集合，包含数字1到5。再创建一个字典，键为集合中的数字，值为该数字的平方。

"""
set1 = set(range(1,6))
print(set1)

dicts = {set1: set1 ** 2 for set1 in range(1,6)}
print(dicts)
